package com.microservice.skeleton.upms.config;

import springfox.documentation.builders.ParameterBuilder;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spi.service.ParameterMetadataAccessor;
import springfox.documentation.spi.service.contexts.ParameterExpansionContext;
import springfox.documentation.spring.web.readers.parameter.ExpansionContext;

/**
 * @author: lijin
 * @date: 2018年11月07日
 */
public class MyParameterExpansionContext extends ParameterExpansionContext {
    private ExpansionContext expansionContext;

    public MyParameterExpansionContext(String dataTypeName, String parentName, String parameterType, ParameterMetadataAccessor metadataAccessor, DocumentationType documentationType, ParameterBuilder parameterBuilder, ExpansionContext expansionContext) {
        super(dataTypeName, parentName, parameterType, metadataAccessor, documentationType, parameterBuilder);
        this.expansionContext = expansionContext;
    }

    public ExpansionContext getExpansionContext() {
        return expansionContext;
    }

    public void setExpansionContext(ExpansionContext expansionContext) {
        this.expansionContext = expansionContext;
    }
}
